home *** CD-ROM | disk | FTP | other *** search
/ MacWorld UK 2005 May / MW_UK_2005_05.iso / 16 iCal utilities / quickCal.sit / quickCal / quickCal.app / Contents / Resources / RowResizableTableView.h < prev    next >
Encoding:
C/C++ Source or Header  |  2005-01-25  |  1.4 KB  |  34 lines

  1. /*
  2.  RowResizableTableView
  3.  Written by Evan Jones <ejones@uwaterloo.ca>, 14-11-2002
  4.  http://www.eng.uwaterloo.ca/~ejones/
  5.  
  6.  Released under the GNU LGPL.
  7.  
  8.  That means that you can use this class in open source or commercial products, with the limitation that you must distribute the source code for this class, and any modifications you make. See http://www.gnu.org/ for more information.
  9.  
  10.  TODO LIST:
  11.  - verifying that everything works when data sources change or update
  12.  - verifying that it works in other edge cases like that
  13.  - move the scrollview when the text insertion point moves off the screen
  14.  - get this working with outline views
  15.  - define an API to play nice with others
  16.  - package, document, promote
  17.  */
  18.  
  19. #import <AppKit/AppKit.h>
  20.  
  21. /** An NSTableView subclass which allows for resizable rows. At the moment the implementation is FAR from optimized, however it seems to run reasonably well with moderately sized tables. Right now, the table rows will resize itself to fit the contents of the text cells. In the future, it may be possible to programatically turn this feature on and off and use setHeightOfRow to programatically change the heights. */
  22. @interface RowResizableTableView : NSTableView {
  23.  
  24. #include "RowResizableViewVars.h"
  25.     
  26. }
  27.  
  28. #include "RowResizableViewMethods.h"
  29.  
  30. // Gross hack to allow code sharing between RowResizable*Views
  31. #define ROW_RESIZABLE_WILL_DISPLAY_CELL_SELECTOR @selector(tableView:willDisplayCell:forTableColumn:row:)
  32.  
  33. @end
  34.